pushd `dirname $0`
cd ..
# IGNITION_CONFIG="ignition/config.ign"
# IGNITION_DEVICE_ARG="-fw_cfg name=opt/com.coreos/config,file=${IGNITION_CONFIG}"
# sudo qemu-kvm -m 2048 -cpu host -drive if=virtio,file=ignition/my-fcos-vm.qcow2 \
#     ${IGNITION_DEVICE_ARG} \
#     -nic user,model=virtio,hostfwd=tcp::22-:22,hostfwd=tcp::80-:80,hostfwd=tcp::443-:443,hostfwd=udp::443-:443

sudo qemu-kvm -m 1024 -cpu host -drive if=virtio,file=nixos.qcow2 \
    -nic user,model=virtio,hostfwd=tcp::22-:22,hostfwd=tcp::80-:80,hostfwd=tcp::443-:443,hostfwd=udp::443-:443
popd
